<div class="cl">
	<div class="content_holder fl">
		<div id="content">
			<div class="block_holder br5">
				<div class="cl">
					
					<div id="form_account">
						<div class="form">

						<?php $form=$this->beginWidget('CActiveForm', array(
							'id'=>'users-form',
							'enableAjaxValidation'=>false,
						)); ?>
							<?php echo $form->errorSummary($model); ?>
							<h2><?php echo Yii::t('main','General Info'); ?></h2>
							<div class="row cl one_line">	
								<div class="fl">
									<?php echo $form->labelEx($model,'full_name'); ?>
									<div class="inp_text">
										<?php echo $form->textField($model,'full_name',array('maxlength'=>128)); ?>
										<?php echo $form->error($model,'full_name'); ?>
									</div>
								</div>
								<div class="fl">
									<?php echo $form->labelEx($model,'phone'); ?>
									<div class="inp_text">
										<?php echo $form->textField($model,'phone'); ?>
										<?php echo $form->error($model,'phone'); ?>
									</div>
								</div>
							</div>
							
							<div class="row cl one_line">
								<div class="fl">
									<?php echo $form->labelEx($model,'country_id'); ?>
									<div class="select">
										<?php echo $form->dropDownList($model,'country_id', CSelect::items('Country'),  array( 'empty' => (Yii::t('main', 'Select a country')) )); ?>
										<?php echo $form->error($model,'country_id'); ?>
									</div>
								</div>
								<div class="fl">
									<?php echo $form->labelEx($model,'city_id'); ?>
									<div class="select">
										<?php echo $form->dropDownList($model,'city_id', CSelect::items('City'),  array( 'empty' => (Yii::t('main', 'Select a city')) )); ?>
										<?php echo $form->error($model,'city_id'); ?>
									</div>
								</div>
							</div>
							<div class="row">
								<?php echo $form->labelEx($model,'address'); ?>
								<div class="inp_text">
									<?php echo $form->textField($model,'address',array('size'=>60,'maxlength'=>255)); ?>
									<?php echo $form->error($model,'address'); ?>
								</div>
							</div>
							<div class="row cl one_line">
								<div class="fl">
									<?php echo $form->labelEx($model,'sex'); ?>
									<div class="select">
										<?php echo $form->dropDownList($model, 'sex', array('1'=>Yii::t('main','Man'), '2'=>Yii::t('main','Woman')), array('empty' => (Yii::t('main', 'Select a sex')),'class'=>'style'));?>
										<?php echo $form->error($model,'sex'); ?>
									</div>
								</div>
	
								<div class="fl">
									<?php echo $form->labelEx($model,'birthday'); ?>
									<div class="inp_text">
										<?php echo $form->textField($model,'birthday'); ?>
										<?php echo $form->error($model,'birthday'); ?>
									</div>
								</div>
							</div>
							
							<div class="row">
								<?php echo $form->labelEx($model,'language'); ?>
								<div class="inp_text">
									<?php echo $form->textField($model,'language',array('size'=>60, 'maxlength'=>255)); ?>
									<?php echo $form->error($model,'language'); ?>
								</div>
							</div>

							

							<div class="row">
								<?php echo $form->labelEx($model,'about'); ?>
								<div class="textarea big_area">
									<?php echo $form->textArea($model,'about',array('size'=>80,'maxlength'=>1000)); ?>
									<?php echo $form->error($model,'about'); ?>
								</div>
							</div>

<!-- new password -->
							<h2><?php echo Yii::t('main','Change Password'); ?></h2>
							<div class="row">
								<?php echo $form->labelEx($model,'oldPassword'); ?>
								<div class="inp_text">
									<?php echo $form->textField($model,'oldPassword',array('class'=>'settings_fld', 'size'=>60, 'maxlength'=>255)); ?>
									<?php echo $form->error($model,'oldPassword'); ?>
								</div>
							</div>
							<div class="row cl one_line">
								<div class="fl">
									<?php echo $form->labelEx($model,'newPassword'); ?>
									<div class="inp_text">
										<?php echo $form->textField($model,'newPassword',array('class'=>'settings_fld', 'maxlength'=>255)); ?>
										<?php echo $form->error($model,'newPassword'); ?>
									</div>
								</div>
								<div class="fl">
									<?php echo $form->labelEx($model,'confirmPassword'); ?>
									<div class="inp_text">
										<?php echo $form->textField($model,'confirmPassword',array('class'=>'settings_fld', 'maxlength'=>255)); ?>
										<?php echo $form->error($model,'confirmPassword'); ?>
									</div>
								</div>
							</div>
<!-- new e-mail -->
							<h2><?php echo Yii::t('main','Change E-mail'); ?></h2>
							
							<div class="row cl one_line">
								<div class="fl">
									<?php echo $form->labelEx($model,'oldEmail'); ?>
									<div class="inp_text">
										<?php echo $form->textField($model,'oldEmail',array('class'=>'settings_fld', 'maxlength'=>255)); ?>
									</div>
								</div>
								<div class="fl">
									<?php echo $form->labelEx($model,'newEmail'); ?>
									<div class="inp_text">
										<?php echo $form->textField($model,'newEmail',array('class'=>'settings_fld', 'maxlength'=>255)); ?>
									</div>
								</div>
							</div>

							<div class="btn blue br3 fl">
								<?php echo CHtml::submitButton($model->isNewRecord ? 'Continue' : 'Save'); ?>
							</div>

						<?php $this->endWidget(); ?>

						</div><!-- form -->
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- Right col -->
	<div id="right" class="br5">
		<div class="order_form">
			<!-- right menu Cabinet -->
			<?php $this->renderPartial('_menu_r_Cabinet'); ?>
		</div>
	</div>
</div>